package com.ysd.ziyuanshiyongtongji.util;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Random;

/**
 * CardUtil
 */
public class CardUtil {
//生成会员卡号，每月+6位随机数
public static String getCardNo(){
    SimpleDateFormat sdf=new SimpleDateFormat("yyMM");
    String newDate=sdf.format(new Date());
    Random random=new Random();
    String res="";
    for(int i=0;i<6;i++){
     res+=random.nextInt(10);
    }
  return newDate+res;
}
    
}